<template>
  <div class='menu'>
    <div class='header_top'>
      <div>
        <router-link to="/setting/wechat">
          <i>自定义微信菜单</i></router-link>
      </div>
    </div>
    <div class="content">
      <div class="content_inside">
        <div>
          <h3>自定义微信菜单</h3>
          <p>你可以在这里添加或修改你的微信菜单，可添加最多 3 个一级菜单，每个一级菜单下可添加最多 5 个子菜单</p>
        </div>
        <div>
          <div>
            <ul>
              <!--<li>添加子菜单</li>
              <li>添加子菜单</li>
              <li>添加子菜单</li>-->
            </ul>
          </div>
          <div>
            <ul>
              <!--<li>添加子菜单</li>
              <li>添加子菜单</li>
              <li>添加子菜单</li>-->
            </ul>
          </div>
          <div>
            <ul>
              <!--<li>添加子菜单</li>
              <li>添加子菜单</li>
              <li>添加子菜单</li>-->
            </ul>
          </div>
        </div>
        <div>
          <ul>
            <li @click='alertBox()'>
              添加一级菜单
            </li>
            <li style='visibility:hidden'>
              添加一级菜单
            </li>
            <li style='visibility:hidden'>
              添加一级菜单
            </li>
          </ul>
        </div>
        <div class='foot_button'>
          <el-button type="primary">保存</el-button>
          <el-button type="primary" :disabled="true">取消</el-button>
        </div>

        <box v-if='showBox' v-on:send='getdata()'></box>
      </div>
    </div>
  </div>
</template>
<script>
// 引入弹出box子组件
import box from  '@/components/box'
  export default {
    data() {
      return {
         showBox:false,
      }
    },
    // 注册子组件
    components:{
      box
    },
    methods: {
      getdata(flag){
        this.showBox = flag
      },
      alertBox(){
        this.showBox = true;
        
      },
    }
  }

</script>
<style scoped lang='less'>
  .shadow{
   width: 100%;
   height: 100%;
   background: rgba(0,0,0,.6);
    position: absolute;
    left:0;
    top:0;
   

  }

  .menu {
   
    li{
      cursor:pointer;
    }
    .content {
      height: 700px;
      padding: 25px;
      background: #f2f3f5;
      .content_inside {
        padding: 30px;
        background: #fff;
        >div:first-of-type {
          padding-bottom: 35px;
          border-bottom: 1px solid #f2f3f5;
          h3 {
            color: #000;
            font-size: 16px;
            margin-bottom: 20px;
          }
          p {
            color: #969faa;
          }
        }
        >div:nth-of-type(2) {
          background: #f2f3f5;
          display: flex;
          text-align: center;
          border-radius: 5px;
          margin-top: 30px;
          box-sizing: content-box;
          padding:100px 0 20px 0;
          div {
           
            width: 0px;
            flex: 3;
            ul {
              display: inline-block;
              text-align: center;
              
            }
            ul li {
              background: #fff;
              color: #009de7;
              border: 1px solid #e0e0e0;
              width: 150px;
              height: 30px;
              line-height: 30px;
              border-radius: 3px;
              font-size: 12px;
            }
          }
        }
        >div:nth-of-type(3) {
          ul {
            display: flex;
            text-align: center;
            li {
              flex: 3;
              background: #fff;
              color: #009de7;
              border: 1px solid #e0e0e0;
              /*width: 180px;*/
              height: 40px;
              line-height: 40px;
              border-radius: 3px;
              font-size: 14px;
              margin-top: -5px;
            }
          }
        }
        .foot_button{
          margin-top: 20px;
          button{
            width: 150px;
            height: 37px;
          }
        }
      }
    }
  }

</style>
